﻿package org.cshoo.sys.data.entity;

import java.io.Serializable;
import java.util.Set;

/**
 * 菜单实体类
 * @author 杨翼
 * 2012年10月5日 杨翼 创建
 */
public class Menu implements Serializable{
	/**
	 * 菜单id
	 */
	private Long id;
	/**
	 * 菜单编号，如果系统太大，可以当做业务码使用
	 */
	private String code;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 菜单排位顺序
	 */
	private Integer order;
	/**
	 * 菜单的请求地址，也可以指文件
	 */
	private String flexurl;
	/**
	 * flex树图标
	 */
	private String flextreeicon;
	/**
	 * flex tab图标
	 */
	private String flextabicon;
	/**
	 * 菜单描述
	 */
	private String description;
	
	/**
	 * 父节点 Menu
	 */
	private Menu parent;
	
	/**
	 * 孩子菜单
	 */
	private Set<Menu> children;
	
		
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public Integer getOrder() {
		return order;
	}
	public void setOrder(Integer order) {
		this.order = order;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Set<Menu> getChildren() {
		return children;
	}
	public void setChildren(Set<Menu> children) {
		this.children = children;
	}
	public Menu getParent() {
		return parent;
	}
	public void setParent(Menu parent) {
		this.parent = parent;
	}
	public String getFlexurl() {
		return flexurl;
	}
	public void setFlexurl(String flexurl) {
		this.flexurl = flexurl;
	}
	public String getFlextreeicon() {
		return flextreeicon;
	}
	public void setFlextreeicon(String flextreeicon) {
		this.flextreeicon = flextreeicon;
	}
	public String getFlextabicon() {
		return flextabicon;
	}
	public void setFlextabicon(String flextabicon) {
		this.flextabicon = flextabicon;
	}
}
